Cipher Twister - Long and ShortINTRO / NOTES:
This script is based on Market Cipher B Oscillator by Falcon
The difference in this script is that only the useful points are printed on the indicator, namely Long and Short Trade Execution signals to be used by a bot, namely the PT Bot.
The script also differs from the original that it has been upgraded to Pinescript v4
This oscillator can be used with ALL time frames, but generally works the best on 15 minute and 1 hour charts on ANY market, no matter, stock, forex, crypto, spot, futures, derivatives, Nasdaq etc...
DEFINITIONS:
This oscillator forms the foundation of Buy and Exit of Long and Short Trades.
There are 2 'Red' Lines at the top of the channel and 2 Green Lines at the bottom of the channel.
These two channels are set at default to be +53 / -53 and +60 / -60 respectively. These two lines will serve as the threshold point if one is to make cautious trades only.
There is a center line which divides the Oscillator into two parts. Above the center line, the market is in over bought territory and Below the center line is in over sold territory.
'Red' dots are drawn by the indicator to represent a potential Short (or a signal to exit from a Long position)
'Green' dots are drawn by the indicator to represent a potential Long (or a signal to exit from a Short position)
The 'Red' and 'Green' dots are draw when a Cross between both wt1 & wt2 cross, thus providing a fantastic indication of potential trend reversal and entry/exit of a position.
STRATEGY NOTES:
The strategy to use this indicator with for realistic and proper results would be to use it with an automated Trading Bot such as Profit Trailer (PT-BOT)
You could use this strategy manually, however it would mean you would need to sit in front of the screen all day and night long and activate the trades immediately after the 'red'/'green' dots are drawn. Usually this will result in non-optimal entries and exits as well as loss on various instances when a 'red' and 'green' dot are printed close together (which is usually when the market goes into correction/consolidation) and slow entries/exits will result in a loss rather than a small profit or exit at BE (Break Even)
ACTUAL STRATEGY (For use with automated bot)
To be used in conjunction with Heikin Ashi Candles for added cautionary measures
For LONGs ONLY
--------------------
1/ When 'Green' dot is drawn, ACTIVATE Long Position
(Use 1.5% Risk Management for each trade)
(Use Lot size based on 1.5% risk management and xLeverage (if any))
2/ Make sure bot Opens an SL (Stop Loss) value based on 1.5% Risk Management
3/ When 'Red' dot is drawn, CLOSE Long Position.
*If you want to add extra caution to your trade, only activate the trade if the 'Green' dot is BELOW the 'Green' Markers
*For added caution, use color coded Heikin Ashi candles to 'confirm' Activation and Closing of a trade in the bot configuration
---------------------------------------------------------------------------------------------------
For SHORTs ONLY
--------------------
1/ When 'Red' dot is drawn, ACTIVATE Short Position
(Use 1.5% Risk Management for each trade)
(Use Lot size based on 1.5% risk management and xLeverage (if any))
2/ Make sure bot Opens an SL (Stop Loss) value based on 1.5% Risk Management
3/ When 'Green' dot is drawn, CLOSE Short Position
*If you want to add extra caution to your trade, only activate the trade if the 'Red' dot is Above the Red Markers
*For added caution, use color coded Heikin Ashi candles to 'confirm' Activation and Closing of a trade in the bot configuration
---------------------------------------------------------------------------------------------------
Supplementary Notes:
Make sure that your bot configuration will only activate ONE TRADE when the 'Green'/'Red' dot appears.
Occasionally during high volatility , 'red'/'green' dots will appear intermittently before remaining drawn, thus the oscillator 'redraws' the dots during market movement.
There will be times where occasionally a 'green' dot or a 'red' dot will appear, the trade will be opened, but the trade will fail due to the market manipulation (algorithm/market maker bots/fake volume etc), to wipe out those trading on derivatives and futures markets using leverage. Do not worry about this, no bot can make 100% wins, no strategy will achieve 100% win ratio and one necessarily doesn't need a high win ratio when using strict money management practices with your trading for SL and lot size.
If you use this method, you will see great results, but again I must stress, using this method with a fully automated bot is the only way to achieve proper results. 
Cerca negli script per "Heikin Ashi"
Rolling OHLC Candles█  OVERVIEW
This indicator displays a Rolling OHLC Bars for a given timeframe Multiplier. Contrary to OHLC Charts, if the timeframe Multiplier is "5", this indicator plot OHLC of the last 5 Candles.
█  WHAT IS THE NEED FOR IT
Let's see if we want to use a Higher timeframe OHLC Data using security function or resolution options. The indicator repaints until the higher timeframe OHLC Candle closes, leading to a repainting strategy or indicator using higher-timeframe data. So we can use Rolling OHLC Candles in these cases.
█  USES
 
  To Pull out higher timeframe OHLC Data to build a non-repainting strategy or indicator.
   Prominently, traders use Heikin Ashi Candles to locate trends or trading opportunities easier than traditional candlesticks. But the OHLC in those Heikin Ashi candles doesn't match with conventional candlesticks. We can use these Rolling OHLC Candles as an alternative for Heikin Ashi Candles because Here we can locate trends or trading opportunities easier than traditional candlesticks, and also close of these candles matches the close of the standard candlesticks, which can help us to take trades based on the close of the candles.
 
█  WHY I AM BUILDING THIS SIMPLE INDICATOR
There is no doubt higher timeframe analysis is a critical study to mastering the markets.
I found a necessity for an indicator that analyses multiple higher timeframes and gives us a cumulative or average trend direction. I already built the indicator; I will release it soon. The Indicator I am building is wholly based on my understanding and perspective of Market Structure. Please use this indicator idea to remove the repainting issue when you make an indicator that utilises higher timeframe data. 
I am using this in my upcoming indicators. Felt to share before head.
Stay Tuned...
If you have any recommendations or alternative ideas, then please drop a comment under the script ;)
lib_Indicators_v2_DTULibrary   "lib_Indicators_v2_DTU" 
This library functions returns included Moving averages, indicators with factorization, functions candles, function heikinashi and more. 
Created it to feed as backend of my indicator/strategy "Indicators & Combinations Framework Advanced v2  " that will be released ASAP.
This is replacement of  my previous indicator (lib_indicators_DT)
I will add an indicator example which will use this indicator named as "lib_indicators_v2_DTU example" to help the usage of this library
Additionally library will be updated with more indicators in the future
 NOTES: 
Indicator functions returns only one series :-(
plotcandle function returns candle   series
 INDICATOR LIST:    
hide   = 'DONT DISPLAY',                            //Dont display & calculate the indicator. (For my framework usage)
alma   = 'alma(src,len,offset=0.85,sigma=6)',       //Arnaud Legoux Moving Average 
ama    = 'ama(src,len,fast=14,slow=100)',           //Adjusted Moving Average
acdst  = 'accdist()',                               //Accumulation/distribution index. 
cma    = 'cma(src,len)',                            //Corrective Moving average    
dema   = 'dema(src,len)',                           //Double EMA  (Same as EMA with 2 factor)
ema    = 'ema(src,len)',                            //Exponential Moving Average 
gmma   = 'gmma(src,len)',                           //Geometric Mean Moving Average
hghst  = 'highest(src,len)',                        //Highest value for a given number of bars back.   
hl2ma  = 'hl2ma(src,len)',                          //higest lowest moving average
hma    = 'hma(src,len)',                            //Hull Moving Average.
lgAdt  = 'lagAdapt(src,len,perclen=5,fperc=50)',    //Ehler's Adaptive Laguerre filter
lgAdV  = 'lagAdaptV(src,len,perclen=5,fperc=50)',   //Ehler's Adaptive Laguerre filter variation
lguer  = 'laguerre(src,len)',                       //Ehler's Laguerre filter
lsrcp  = 'lesrcp(src,len)',                         //lowest exponential esrcpanding moving line
lexp   = 'lexp(src,len)',                           //lowest exponential expanding moving line 
linrg  = 'linreg(src,len,loffset=1)',               //Linear regression
lowst  = 'lowest(src,len)',                         //Lovest value for a given number of bars back.
pcnl   = 'percntl(src,len)',                        //percentile nearest rank. Calculates percentile using method of Nearest Rank.
pcnli  = 'percntli(src,len)',                       //percentile linear interpolation. Calculates percentile using method of linear interpolation between the two nearest ranks.
rema   = 'rema(src,len)',                           //Range EMA (REMA)   
rma    = 'rma(src,len)',                            //Moving average used in RSI. It is the exponentially weighted moving average with alpha = 1 / length.
sma    = 'sma(src,len)',                            //Smoothed Moving Average
smma   = 'smma(src,len)',                           //Smoothed Moving Average
supr2  = 'super2(src,len)',                         //Ehler's super smoother, 2 pole 
supr3  = 'super3(src,len)',                         //Ehler's super smoother, 3 pole
strnd  = 'supertrend(src,len,period=3)',            //Supertrend indicator
swma   = 'swma(src,len)',                           //Sine-Weighted Moving Average
tema   = 'tema(src,len)',                           //Triple EMA  (Same as EMA with 3 factor)
tma    = 'tma(src,len)',                            //Triangular Moving Average
vida   = 'vida(src,len)',                           //Variable Index Dynamic Average   
vwma   = 'vwma(src,len)',                           //Volume Weigted Moving Average
wma    = 'wma(src,len)',                            //Weigted Moving Average 
angle  = 'angle(src,len)',                          //angle of the series   (Use its Input as another indicator output)
atr    = 'atr(src,len)',                            //average true range. RMA of true range.                
bbr    = 'bbr(src,len,mult=1)',                     //bollinger %%
bbw    = 'bbw(src,len,mult=2)',                     //Bollinger Bands Width. The Bollinger Band Width is the difference between the upper and the lower Bollinger Bands divided by the middle band.
cci    = 'cci(src,len)',                            //commodity channel index
cctbb  = 'cctbbo(src,len)',                         //CCT Bollinger Band Oscilator
chng   = 'change(src,len)',                         //Difference between current value and previous, source - source .
cmo    = 'cmo(src,len)',                            //Chande Momentum Oscillator. Calculates the difference between the sum of recent gains and the sum of recent losses and then divides the result by the sum of all price movement over the same period.
cog    = 'cog(src,len)',                            //The cog (center of gravity) is an indicator based on statistics and the Fibonacci golden ratio.
cpcrv  = 'copcurve(src,len)',                       //Coppock Curve.  was originally developed by Edwin "Sedge" Coppock (Barron's Magazine, October 1962).
corrl  = 'correl(src,len)',                         //Correlation coefficient. Describes the degree to which two series tend to deviate from their ta.sma values.
count  = 'count(src,len)',                          //green avg - red avg
dev    = 'dev(src,len)',                            //ta.dev()  Measure of difference between the series and it's ta.sma
fall   = 'falling(src,len)',                        //ta.falling() Test if the `source` series is now falling for `length` bars long. (Use its Input as another indicator output)
kcr    = 'kcr(src,len,mult=2)',                     //Keltner Channels Range  
kcw    = 'kcw(src,len,mult=2)',                     //ta.kcw(). Keltner Channels Width. The Keltner Channels Width is the difference between the upper and the lower Keltner Channels divided by the middle channel.
macd   = 'macd(src,len)',                           //macd
mfi    = 'mfi(src,len)',                            //Money Flow Index
nvi    = 'nvi()',                                   //Negative Volume Index
obv    = 'obv()',                                   //On Balance Volume
pvi    = 'pvi()',                                   //Positive Volume Index 
pvt    = 'pvt()',                                   //Price Volume Trend
rise   = 'rising(src,len)',                         //ta.rising() Test if the `source` series is now rising for `length` bars long. (Use its Input as another indicator output)
roc    = 'roc(src,len)',                            //Rate of Change
rsi    = 'rsi(src,len)',                            //Relative strength Index
smosc  = 'smi_osc(src,len,fast=5, slow=34)',        //smi Oscillator
smsig  = 'smi_sig(src,len,fast=5, slow=34)',        //smi Signal
stdev  = 'stdev(src,len)',                          //Standart deviation
trix   = 'trix(src,len)' ,                           //the rate of change of a triple exponentially smoothed moving average.
tsi    = 'tsi(src,len)',                            //True Strength Index
vari   = 'variance(src,len)',                       //ta.variance(). Variance is the expectation of the squared deviation of a series from its mean (ta.sma), and it informally measures how far a set of numbers are spread out from their mean.
wilpc  = 'willprc(src,len)',                        //Williams %R
wad    = 'wad()',                                   //Williams Accumulation/Distribution.
wvad   = 'wvad()'                                   //Williams Variable Accumulation/Distribution.
}
 f_func(string, float, simple, float, float, float, simple)  f_func          Return selected indicator value with different parameters. New version. Use extra parameters for available indicators
  Parameters:
     string : FuncType_       indicator from the indicator list 
     float : src_            close, open, high, low,hl2, hlc3, ohlc4 or any  
     simple : int    length_         indicator length
     float : p1              extra parameter-1. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p2              extra parameter-2. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p3              extra parameter-3. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     simple : int    version_        indicator version for backward compatibility. V1:dont use extra parameters p1,p2,p3 and use default values. V2: use extra parameters for available indicators
  Returns: float                Return calculated indicator value
 fn_heikin(float, float, float, float)  fn_heikin  Return given  src data (open, high,low,close) as heikin ashi candle values
  Parameters:
     float : o_              open value
     float : h_              high value
     float : l_              low value
     float : c_              close value
  Returns: float          heikin ashi open, high,low,close vlues that will be used with plotcandle
 fn_plotFunction(float, string, simple, bool)  fn_plotFunction Return input src data with different plotting options
  Parameters:
     float : src_            indicator src_data or any other series.....
     string : plotingType     Ploting type of the function on the screen  
     simple : int    stochlen_       length for plotingType for stochastic and PercentRank options
     bool : plotSWMA        Use SWMA for smoothing Ploting
  Returns: float        
 fn_funcPlotV2(string, float, simple, float, float, float, simple, string, simple, bool, bool)  fn_funcPlotV2   Return selected indicator value with different parameters. New version. Use extra parameters fora available indicators
  Parameters:
     string : FuncType_       indicator from the indicator list
     float : src_data_       close, open, high, low,hl2, hlc3, ohlc4 or any  
     simple : int    length_         indicator length
     float : p1              extra parameter-1. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p2              extra parameter-2. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p3              extra parameter-3. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     simple : int    version_        indicator version for backward compatibility. V1:dont use extra parameters p1,p2,p3 and use default values. V2: use extra parameters for available indicators
     string : plotingType     Ploting type of the function on the screen  
     simple : int    stochlen_       length for plotingType for stochastic and PercentRank options
     bool : plotSWMA        Use SWMA for smoothing Ploting
     bool : log_            Use log on function entries
  Returns: float                Return calculated indicator value
 fn_factor(string, float, simple, float, float, float, simple, simple, string, simple, bool, bool)  fn_factor       Return selected indicator's  factorization with given arguments
  Parameters:
     string : FuncType_       indicator from the indicator list
     float : src_data_       close, open, high, low,hl2, hlc3, ohlc4 or any  
     simple : int    length_         indicator length
     float : p1              parameter-1. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p2              parameter-2. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p3              parameter-3. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     simple : int    version_        indicator version for backward compatibility. V1:dont use extra parameters p1,p2,p3 and use default values. V2: use extra parameters for available indicators
     simple : int    fact_           Add double triple, Quatr factor to selected  indicator (like converting EMA to 2-DEMA, 3-TEMA, 4-QEMA...)
     string : plotingType     Ploting type of the function on the screen  
     simple : int    stochlen_       length for plotingType for stochastic and PercentRank options
     bool : plotSWMA        Use SWMA for smoothing Ploting
     bool : log_            Use log on function entries
  Returns: float                Return result of the function
 fn_plotCandles(string, simple, float, float, float, simple, string, simple, bool, bool, bool)  fn_plotCandles  Return selected indicator's candle values with different parameters also heikinashi is available
  Parameters:
     string : FuncType_       indicator from the indicator list
     simple : int    length_         indicator length
     float : p1              parameter-1. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p2              parameter-2. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     float : p3              parameter-3. active on Version 2 for defining multi arguments indicator input value. ex: lagAdapt(src_, length_,LAPercLen_=p1,FPerc_=p2) 
     simple : int    version_        indicator version for backward compatibility. V1:dont use extra parameters p1,p2,p3 and use default values. V2: use extra parameters for available indicators
     string : plotingType     Ploting type of the function on the screen  
     simple : int    stochlen_       length for plotingType for stochastic and PercentRank options
     bool : plotSWMA        Use SWMA for smoothing Ploting
     bool : log_            Use log on function entries
     bool : plotheikin_     Use Heikin Ashi on Plot
  Returns: float       
Plot Standard Candlesticks as LineThis script is to be used with  Heikin Ashi or any alternative candlesticks. 
It is used to show the actual price movement, (As a line), alongside the alternative candlestick's movement.
The script can be used to help read the signals sent out by the alternative candlesticks. For example, the script can be used to plot the actual price movement, (as a line), alongside Heikin Ashi to easily see how the price reacts to the Heikin Ashi Signals.
[STRATEGY] MA Cross ElevenThis script is a crossing of eleven different MA, with alerts and SL and TP.
The simplest is what works best...
SMA --> Simple
EMA --> Exponential
WMA --> Weighted
VWMA --> Volume Weighted
SMMA --> Smoothed
DEMA --> Double Exponential
TEMA --> Triple Exponential
HMA --> Hull
TMA --> Triangular
SSMA --> SuperSmoother filter
ZEMA --> Zero Lag Exponential
Using "once per bar close" repaint is 0%, but if you like risk can choose "once per bar", better profit.
Thanks to JustUncleL and his amazing sripts.
Enjoy!
www.tradingview.com
"Note: When using non-standard (Renko, Kagi, Line Break, Point and Figure, Heikin Ashi, Spread Charts) types of chart as a basis for strategy, you need to realize that the result will be different. The orders will be executed at the prices of this chart (e.g.for Heikin Ashi it’ll take Heikin Ashi prices (the average ones) not the real market prices). Therefore we highly recommend you to use standard chart type for strategies."
Smoothed Heiken Ashi Trend FilterThis indicator applies the Heiken Ashi technique with added smoothing and trend filtering to help reduce noise and improve trend detection.
 Components of the Indicator: 
 Heiken Ashi Calculations: 
Heiken Ashi Close (ha_close): This is the smoothed average of the current bar’s open, high, low, and close prices, calculated with a simple moving average (SMA) to filter out noise.
Heiken Ashi Open (ha_open): This is the average of the previous Heiken Ashi Open and the current Heiken Ashi Close. It’s also initialized to smooth the transition on the first bar.
Heiken Ashi High (ha_high) and Low (ha_low): These values are calculated as the highest and lowest values among the high, Heiken Ashi Open, and Heiken Ashi Close for each bar.
 Smoothing and Noise Reduction: 
 Smoothing Length:  The indicator applies a smoothing length to the Heiken Ashi Close, calculated with an SMA. This reduces minor fluctuations, giving a clearer view of the price action.
 Minimum Body Size Filter:  This filter calculates the body size of each Heiken Ashi candle and compares it to a percentage of the Average True Range (ATR). Only significant candles (those with larger bodies) are plotted, reducing weak or indecisive signals.
 Trend Filtering with Moving Average: 
The indicator uses a simple moving average (SMA) as a trend filter. By comparing the Heiken Ashi Close to the moving average:
Bullish Trend: The Heiken Ashi candle is green when it’s above the moving average.
Bearish Trend: The Heiken Ashi candle is red when it’s below the moving average.
 How to Use This Indicator: 
 Trend Identification: 
Green candles signify a bullish trend, while red candles signify a bearish trend.
The smoothing and trend filtering make it easier to identify sustained trends and avoid reacting to short-term fluctuations.
 Filtering Out Noise: 
Minor price fluctuations and small-bodied candles (often resulting in indecisive signals) are filtered out, leaving only significant signals.
 Adjustable Parameters: 
Smoothing Length: Controls the degree of smoothing applied to the Heiken Ashi Close value. Increasing this value will make the Heiken Ashi candles smoother.
Minimum Body Size: This is a percentage of the ATR, used to filter out small or indecisive candles.
Trend Moving Average Length: Controls the period of the moving average used as a trend filter.
This Smoothed Heiken Ashi Trend Filter indicator is useful for identifying trends and filtering out noisy signals. By smoothing and filtering, it helps traders focus on the overall trend rather than minor price movements.
Let me know if there’s anything more you’d like to add or adjust!
Heiken Ashi All TFI have always fighted to understand the market direction because it looks different on different timeframes.
I wanted an indicator where I can see all the different timeframes at once.
This indicator shows the Heiken Ashi candle colors for different time frames at once.
Use it on the 5 Minute timeframe.
4 colors:
dark green: bullis green HA candle with no low shadow.
green: green HA candle.
red: red HA candle
datk red: bearish red HA candle with non existing upper shadow.
the timeframes are by default:
5m 15m 30m 1H 4H 1D
can be adjusted if needed.
signals:
in the top line the Buy / Shell Signals are shown when the selected timeframes are all changed.
for example after a buy signal a sell signal will be printend when all the selected timeframes are turned into red or dark red.
Do not use it as a tranding signal, us it for confirmation.
It doesn't predict. it shows the market's current state.
Don't forget that the latest candles are based on the current value. The higher timeframe candle color depends on the current price. 
If the higher timeframe close price so different that the HA candle color changes it reprins for all the affected 5m dots.
Heiken Ashi DifferencePort of the Heiken Ashi Diff Indicator from Thinkorswim. 
The Heikin Ashi Difference study plots the difference of Close and Open prices as expressed in Heikin Ashi values. It also displays auxiliary plot showing the Simple Moving Average of the difference.
Price Action Doji Harami v0.2 by JustUncleLThis is an updated and final version of this indicator. This version distinguishes between the true Harami and the other Doji candlestick patterns as used with the Heikin Ashi candle charts. These candle patterns indicate a potential trend reversal or pullback.
The patterns identified are:
   - Bearish Harami (Red Highlight above Bar): 
       One to three (default 3) large body Bull (green) candles followed by a small (red) 
       or no body candle (less than 0.5pip) with wicks top and bottom that are at least 60% of candle.
   - Bullish Harami (Green Highlight below Bar): 
       One to three (default 3) large body Bear (red) candles followed by a small (green) 
       or no body candle (less than 0.5pip) with wicks top and bottom that are at least 60% of candle.
   - Bearish Doji (Fuchsia Highlight above Bar): 
       One to three (default 3) large body Bull (green) candles followed by a small (green) 
       with wicks top and bottom that are at least 60% of candle.
   - Bullish Doji (Aqua Highlight below Bar): 
       One to three (default 3) large body Bear (red) candles followed by a small (red)
       with wicks top and bottom that are at least 60% of candle.
You can optionally specify how large the candles prior to Harami/Doji are in pips, default is 0 pip. 
If you set this to zero then it will have no candle size consideration. You can also specify how many look back candles (1-3) are used in Harami/Doji calculations (default 3).
Included option to perform Calculations purely on Heikin Ashi candles, this helps when you want to see the HA Doji/Harami bars with the normal candle stick chart.
Also can optionally set an alert condition for when Harami/Doji found, this also displays a circle on the bottom of the screen when alert is triggered.
haDelta (developed by Dan Valcu)haDelta is a simple indicator originally developed and published by Mr. Dan Valcu.
The indicator is used quantify Heikin Ashi candles, measures the difference between HA close and HA open.
haDelta is sensitive indicator, measures the height of the candle body, for smoothing a 3 period SMA is used (similar to Qstick indicator).
The crossovers of haDelta and SMA(3) can give important early signals and confirmation together with Heiken Ashi candle patterns about possible trend reversals or trend exhaustion.
The zero line is also very important. Whenever haDelta and/or its SMA(3) crosses over the zero line, it gives further signal of possible strength of the trend.
Please note that haDelta is not for mechanic trading alone, but for use in conjunction with Heikin Ashi rules.
Vervoort Heiken-Ashi LongTerm Candlestick Oscillator [LazyBear]HACOLT (Heikin Ashi Candles Oscillator Long Term) is a technical indicator designed by Sylvain Vervoort. It is based on Mr.Vervoort's other indicator, HACO (Heikin-Ashi Candles Oscillator - posted here: ).
Optimized for long-term trading, HACOLT shows three levels: -1, 0 and 1. These levels suggest "an open short position", "no open position", and "an open long position", respectively. Passing from a certain level to another is viewed as a trading signal:
 - Rising from -1 or 0 to 1 suggests a Long Entry and Short exit;
 - Falling from 1 to 0 or -1 suggests a Long Exit;
 - Falling from 1 or 0 to -1 indicates a Short Entry.
Fits in nicely with any trading setup as a confirmation indicator 
More info: 
 - tlc.thinkorswim.com
 - www.motivewave.com
List of my other indicators: 
- GDoc: docs.google.com
- Chart: 
Lynie's V9 SELL🟢🔴 Lynie’s V8 — BUY & SELL (Mirrored, Interlocking System)
Lynie’s V8 is a paired long/short engine built as two mirrored scripts—Lynie’s V8 BUY and Lynie’s V8 SELL—that read price the same way, flip conditions symmetrically, and manage trades with the exact logic on opposite sides. Use either one standalone or run both together for full two-sided automation of entries, re-entries, caution states, and adaptive SL/TP.
✳️ What “mirrored” means here
Supertrend Tri-Stack (10/11/12):
BUY: ST10 primary pierce; ST12 fallback; “PAG Buy” when price pierces any ST while above the other two.
SELL: Exact inverse—ST10 primary pierce down; ST12 fallback; “PAG Sell” when price pierces any ST while below the other two.
Re-Enter Clusters:
BUY: Ratcheted up (Heikin-Ashi green holds/tightens).
SELL: Ratcheted down (Heikin-Ashi red holds/tightens).
Both sides use the same cluster age/decay math, care penalties, session awareness, and fast-candle tightening.
Care Flags (context risk):
Ichimoku, MACD, RSI combine into single and paired flags that tighten or widen offsets on both sides with the same scoring.
VWAP–EMA50 (5m) cluster gate:
Identical distance checks for BUY/SELL. When the mean cluster is present, offsets and labels adapt (tighter/“riskier scalp” messaging).
Golden Pocket A/B/C (prev-day):
Same fib boxes & labeling (gold tone) on both sides to call out TP-friendly zones.
SL/TP Envelope:
Shared dynamic engine: per-bar decay, fast-candle expansion, and care-based compress/relax—all mirrored for up/down.
Caution Labels:
BUY side prints CAUTION SELL if HA flips red inside an active long cluster.
SELL side prints CAUTION BUY if HA flips green inside an active short cluster.
Same latching & auto-release behavior.
🧠 Core workflow (both sides)
Primary trigger via ST10 pierce (structure shift) with an ST12 fallback when ST10 didn’t qualify.
PAG Mode when price is already on the right side of the other two STs—strongest conviction.
Cluster phase begins after a signal: ratcheted re-entry level, session-aware offsets, dynamic tightening on fast bars.
Care system shapes every re-entry & SL/TP label (Ichi/MACD/RSI combos + VWAP/EMA gate + QQE).
Protective layer: SL-wick and SL-body logic, caution flips, and “hold 1 bar” cluster carry after SL to avoid whipsaw spam.
🔎 Labels & messages (shared vocabulary)
Lynie’s / Lynie’s+ / Lynie’s++ — strength tiers (ST12 involvement & clean context).
Re-Enter / Excellent Re-Enter — cluster pullback quality; ratchet shows the “must-hold” zone.
SL&TP (n) — live offset multiplier the engine is using right now.
CAUTION BUY / CAUTION SELL — HA flip against the active side inside the cluster.
Restart Next Candle — visual cue to re-arm after a confirmed signal bar.
⚡ Why run both together
Continuity: When a long cycle ends (SL or caution degradation), the SELL engine is already tracking the inverse without re-tuning.
Symmetry: Same math, same signals, opposite direction—no hidden biases.
Coverage: Trend hand-offs are cleaner; you don’t miss early shorts after a long fade (and vice versa).
🔧 Recommended usage
Intraday futures (ES/NQ) or any liquid market.
Keep the VWAP–EMA cluster ON; it filters FOMO chases.
Honor Caution flips inside cluster—scale down or wait for the next clean re-enter.
Treat Golden Zones as TP magnets, not guaranteed reversals.
📌 Notes
Both scripts are Pine v6 and independent. Load BUY and SELL together for the full experience.
All offsets (re-enter & SL/TP) are visible in labels—so you always know why a zone is where it is.
Alerts are provided for signals, re-enter hits, caution, and SL events on both sides.
Summary: Lynie’s V8 BUY & SELL are vice-versa twins—one framework, two directions—delivering consistent entries, adaptive re-entries, and contextual risk management whether the market is pressing up or breaking down.
Buy-Sell Indicator - Michael FernandesThis indicator combines ATR-based trailing stops with EMA crossovers to generate clear buy and sell signals.
It adapts dynamically to market volatility using the Average True Range (ATR) and optionally computes signals from Heikin-Ashi candles for smoother trends.
How It Works:
1. ATR Trailing Stop: Calculates a dynamic stop level above or below price depending on trend direction.
2. EMA Confirmation: A 1-period EMA crossover with the trailing stop helps validate entries.
3. Buy Signal: Triggered when price crosses above the trailing stop and EMA confirms momentum.
4. Sell Signal: Triggered when price crosses below the trailing stop and EMA confirms reversal.
Inputs:
1. Key Value (a): Sensitivity multiplier (higher = tighter stop, more signals).
2. ATR Period (c): Length of ATR used to measure volatility.
3. Heikin-Ashi Mode (h): Option to use smoothed candle data for cleaner trends.
Venza Rocket ScalperVenza Rocket Scalper: Compliant Description (Plaintext)
This strategy is a complex, multi-indicator trend-following system designed for intraday scalping on low-timeframe charts. It uses a confluence of four distinct filters to ensure high-conviction entries during optimal momentum and volume.
1. Overview and Core Logic
The entry signal requires simultaneous confirmation from the following components:
Trend Confirmation (Heikin-Ashi EMAs): The primary trend is established using Heikin-Ashi price action combined with an EMA (Fast=8) crossing and remaining above an EMA (Slow=21). This provides a smoother, momentum-based trend signal.
Momentum Strength (ADX/RSI): The trend must be validated by the ADX (default 16) to confirm sufficient directional strength, and the RSI (default 42) to confirm continued positive internal momentum.
Volume Validation: A dynamic filter requires the current bar's volume to be greater than the 20-period Volume MA (multiplied by the default 1.0 factor), ensuring trades are executed during periods of active market participation.
Session & Volatility Filter: Trades are restricted to a defined trading window (default UTC 12:00 to 20:00). The script also includes an optional Volatility Cap filter based on a long-term ATR to suppress entries during extreme volatility.
2. Trade Management and Realistic Risk
This strategy employs a robust, partial-exit risk management plan driven by the Average True Range (ATR) for sustainable risk control.
Initial Stop Loss (SL): The initial SL is tight and calculated dynamically using the 14-period ATR multiplied by an adjustable factor (default 0.7). This size is designed for micro-losses appropriate for scalping and is adapted slightly during high volatility.
Partial Exits & Profit Taking: The position is split into two equal halves for exit management:
50% Position (TP1): Exited at a 1R profit target, where 1R is defined as the exact value of the initial ATR-based SL.
50% Position (Run): Managed by a Trailing Stop Loss (TSL), with trail points also calculated dynamically using the current ATR.
Breakeven (BE) Lock: An optional feature (default: ON) automatically moves the stop loss to Breakeven (entry price plus 1 tick) once the position is 2 ticks in profit, locking in capital protection rapidly.
Daily Risk Controls: The strategy includes mandatory daily money management features (default: ON):
Max Daily Loss Stop: Stops all trading for the day if the cumulative closed P&L reaches -$500 (default).
Profit Protection Floor: If the closed P&L reaches a minimum threshold (default $110), any open position will be closed if the total daily P&L drops back below this floor, locking in minimum daily gains.
3. Strategy Properties & Backtesting Disclosure
The default settings are configured for high-liquidity futures or FX markets. Users must ensure their backtesting environment is realistic:
Risk Per Trade: The ATR-based SL aims to keep the risk per trade below 5% of a reasonable account size, which is critical for sustainable trading.
Contracts/Size: Default quantity is 3 contracts.
Commissions/Slippage: Commissions and slippage MUST be configured by the user in the Strategy Properties window to reflect real-world brokerage fees and execution costs.
Sample Size: The strategy should be run on a dataset that generates over 100 trades for statistically valid results.
MANDATORY DISCLAIMER: Past performance is not necessarily indicative of future results. Trading involves substantial risk. All claims of historical performance are substantiated by the backtesting results on the chart, but these results do not guarantee actual trading outcomes. Keep your language realistic.
DAMMU SWING TRADING PROScalping and swing trading tool for 15-min and 1-min charts.
Designed for trend, pullback, and reversal analysis.
Works optionally with Heikin Ashi candles.
Indicators Used
EMAs:
EMA89/EMA75 (green)
EMA200/EMA180 (blue)
EMA633/EMA540 (black)
EMA5-12 channel & EMA12-36 ribbon for short-term trends
Price Action Channel (PAC) – EMA high/low/close, length adjustable
Fractals & Pristine Fractals (BW filter)
Higher High (HH), Lower High (LH), Higher Low (HL), Lower Low (LL) detection
Pivot Points – optional, disables fractals automatically
Bar color coding based on PAC:
Blue → Close above PAC
Red → Close below PAC
Gray → Close inside PAC
Trading Signals
PAC swing alerts: arrows or shapes when price exits PAC with optional 200 EMA filter.
RSI 14 signals (if added):
≥50 → BUY
<50 → SELL
Chart Setup
Two panes: 15-min (trend anchor) + 1-min (entry)
Optional Heikin Ashi candles
Use Sweetspot Gold2 for support/resistance “00” and “0” lines
Trendlines can be drawn using HH/LL or Pivot points
Usage Notes
Trade long only if price above EMA200; short only if below EMA200
Pullback into EMA channels/ribbons signals potential continuation
Fractals or pivot points help define trend reversals
PAC + EMA36 used for strong momentum confirmation
Alerts
Up/Down PAC exit alerts configurable with big arrows or labels
RSI labels show buy/sell zones (optional)
Works on both 15-min and 1-min timeframes
If you want, I can make an even shorter “super cheat-sheet” version for 1-page quick reference for trading. It will list only inputs, signals, and colors.
DAMMU Swing Trading PRODammu Scalping Pro – Short Notes
1️⃣ Purpose:
Scalping and swing trading tool for 15-min and 1-min charts.
Designed for trend continuation, pullbacks, and reversals.
Works well with Heikin Ashi candles (optional).
2️⃣ Core Components:
EMAs:
Fast: EMA5-12
Medium: EMA12-36 Ribbon
Long: EMA75/89 (1-min), EMA180/200 (15-min), EMA540/633
Price Action Channel (PAC): EMA-based High, Low, Close channel.
Fractals: Regular & filtered (BW) fractals for swing recognition.
Higher Highs / Lower Highs / Higher Lows / Lower Lows (HH, LH, HL, LL).
Pivot Points: Optional display with labels.
3️⃣ Bar Coloring:
Blue: Close above PAC
Red: Close below PAC
Gray: Close inside PAC
4️⃣ Alerts:
Swing Buy/Sell arrows based on PAC breakout and EMA200 filter.
Optional “Big Arrows” mode for visibility.
Alert messages: "SWING_UP" and "SWING_DN"
5️⃣ Workflow / Usage Tips:
Set chart to 15-min (for trend) + 1-min (for entry).
Optionally enable Heikin Ashi candles.
Trade long only above EMA200, short only below EMA200.
Watch for pullbacks into EMA channels or ribbons.
Confirm trend resumption via PAC breakout & bar color change.
Use fractals and pivot points to draw trendlines and locate support/resistance.
6️⃣ Optional Filters:
Filter PAC signals with 200 EMA.
Filter fractals for “Pristine/Ideal” patterns (BW filter).
7️⃣ Visuals:
EMA ribbons, PAC fill, HH/LL squares, fractal triangles.
Pivot labels & candle numbering for patterns.
8️⃣ Notes:
No extra indicators needed except optionally SweetSpot Gold2 for major S/R levels.
Suitable for scalping pullbacks with trend confirmation.
If you want, I can make an even shorter “one-screen cheat sheet” with colors, alerts, and EMAs, perfect for real-time chart reference.
Do you want me to do that?
DAMMU Swing Trading PRODammu Scalping Pro – Short Notes
1️⃣ Purpose:
Scalping and swing trading tool for 15-min and 1-min charts.
Designed for trend continuation, pullbacks, and reversals.
Works well with Heikin Ashi candles (optional).
2️⃣ Core Components:
EMAs:
Fast: EMA5-12
Medium: EMA12-36 Ribbon
Long: EMA75/89 (1-min), EMA180/200 (15-min), EMA540/633
Price Action Channel (PAC): EMA-based High, Low, Close channel.
Fractals: Regular & filtered (BW) fractals for swing recognition.
Higher Highs / Lower Highs / Higher Lows / Lower Lows (HH, LH, HL, LL).
Pivot Points: Optional display with labels.
3️⃣ Bar Coloring:
Blue: Close above PAC
Red: Close below PAC
Gray: Close inside PAC
4️⃣ Alerts:
Swing Buy/Sell arrows based on PAC breakout and EMA200 filter.
Optional “Big Arrows” mode for visibility.
Alert messages: "SWING_UP" and "SWING_DN"
5️⃣ Workflow / Usage Tips:
Set chart to 15-min (for trend) + 1-min (for entry).
Optionally enable Heikin Ashi candles.
Trade long only above EMA200, short only below EMA200.
Watch for pullbacks into EMA channels or ribbons.
Confirm trend resumption via PAC breakout & bar color change.
Use fractals and pivot points to draw trendlines and locate support/resistance.
6️⃣ Optional Filters:
Filter PAC signals with 200 EMA.
Filter fractals for “Pristine/Ideal” patterns (BW filter).
7️⃣ Visuals:
EMA ribbons, PAC fill, HH/LL squares, fractal triangles.
Pivot labels & candle numbering for patterns.
8️⃣ Notes:
No extra indicators needed except optionally SweetSpot Gold2 for major S/R levels.
Suitable for scalping pullbacks with trend confirmation.
If you want, I can make an even shorter “one-screen cheat sheet” with colors, alerts, and EMAs, perfect for real-time charT
TGFA Flexible Alerts Multi-MA CrossoversTGFA Flexible Alerts, Multi-MA Crossovers 
 Description 
Flexible MA crossovers with BUY/SELL alerts, customizable candle colors, and an info box for ATR/volatility insights. Supports EMA/SMA/HMA/VWAP on any chart.
 Overview 
TGFA Flexible Alerts is a versatile Pine Script indicator for traders seeking customizable moving average (MA) crossovers, visual signals, and quick-reference metrics. It overlays crossover lines (e.g., fast EMA over slow SMA), generates BUY/SELL labels and alerts, colors candles based on themes, and includes an optional info box with ATR bands, support/resistance, and trend projections. Built for any symbol and timeframe (optimized for 1H intraday), it auto-detects Heikin Ashi charts and handles mixed MA types like responsive HMA with lagging EMAs. All logic uses built-in TA functions for reliability—no repainting on confirmed bars.
 Key Features   
 
 MA Crossover Engine:  Configurable lines (EMA, SMA, HMA, VWAP) with dynamic colors (HMA tints green/red based on slope). Enable/disable via inputs.  
 Invert Signals Toggle:  Flips BUY/SELL logic for mixed MA setups (e.g., HMA as fast line over EMA). 
 Reasoning:  Traditional crossovers assume a fast line (low lag) crossing above a slow line (high lag) for buys. HMA's hull design makes it ultra-responsive, so it may "lead" too aggressively—causing premature signals. Inverting aligns it with user intuition (e.g., HMA dipping below then recovering signals strength), reducing false positives in trending markets. Test on your pairs!  
 Visual Alerts:  BUY/SELL labels at crossover price (with optional price display and offset adjustment).  
 Single MA Overlays:  Independent plots for EMA/SMA/HMA/VWAP (length 0 to hide).  
 Info Box:   Real-time table with current price, ±1/2 ATR bands, median price (over lookback), trend (SMA50 slope), volatility % (ATR normalized), support/resistance (recent highs/lows), and reversal projections (tied to SMA50 pivot for up/down bias).  
 Candle Coloring:  20+ themes (dark/light canvases) for bull/bear/reversal/low-volume bars—e.g., Emerald Blaze greens uptrends, dims on low vol. Toggle off for no changes.  
 Chart Source Flexibility: Auto-switches to Heikin Ashi if detected; manual override for Regular/HA.
 
Alerts fire on crossovers/crossunders (custom messages with ticker/interval). Open-source for forking. 
 How to Use 
 
 Add to Chart:   Search in TradingView's public library, apply to any symbol (e.g., stocks, forex). Best on 1H for intraday, but works on daily/weekly too.  
 Setup Crossovers:  Choose Line 1/2 types/lengths (e.g., HMA 9 over SMA 20). Enable "Invert Signals" if using HMA—prevents lag mismatches in volatile assets.  
 Alerts & Labels:  Toggle labels for visuals; set TradingView alerts on "Buy"/"Sell" conditions. Use offset for crowded charts.  
 Info Box Insights:   Enable for quick scans—e.g., enter long near support if trend is bullish and price > median. Adjust ATR length (default 14) for sensitivity.  
 Candle Themes: Pick a scheme (e.g., Neon Pulse for dark mode); it overrides bar colors without altering data.  
 Customization Tip:  For HMA-heavy setups, invert + short lengths (5-9) catch turns early; pair with volume filter in alerts.
 
 Limitations & Disclaimers    - Designed for overlay on price charts; may overlap in tight ranges—adjust transparency via styles.  
HMA can repaint intra-bar; signals confirm on close. Not back tested for all assets—validate with strategy tester.  
Info box projections use SMA(50) as a trend pivot (same for up/down as reference); customize via code for advanced calcs. Candle colors are cosmetic only.  
This is an analysis tool, not advice. Trading involves risk; combine with fundamentals/news. Past performance isn't indicative of future results. No liability for losses.
I'm still a newbie, so feedback encouraged! 
Thank you!!
ThisGirl
Normalized Portfolio TrackerThis script lets you  create, visualize, and track a custom portfolio  of up to 15 assets directly on TradingView.  
It calculates a synthetic "portfolio index" by combining multiple tickers with user-defined weights,  automatically normalizing  them so the total allocation always equals 100%.  
All assets are scaled to a common starting point, allowing you to compare your portfolio’s performance versus any benchmark like SPY, QQQ, or BTC.  
 🚀 Goal   
This script helps traders and investors:  
• Understand the  combined performance  of their portfolio.  
• Normalize diverse assets into a  single synthetic chart .  
• Make portfolio-level insights without relying on external spreadsheets.  
 🎯 Use Cases   
• Backtest your portfolio allocations directly on the chart.  
• Compare your portfolio vs. benchmarks like SPY, QQQ, BTC.  
• Track thematic baskets (commodities, EV supply chain, regional ETFs).  
• Visualize how each component contributes to overall performance.  
 📊 Features   
•  Weighted Portfolio Performance : Combines selected assets into a synthetic value series.  
•  Base Price Alignment : Each asset is normalized to its starting price at the chosen date.  
•  Dynamic Portfolio Table : Displays symbols, normalized weights (%), equivalent shares (based on each asset’s start price, sums to 100 shares), and a total row that always sums to 100%.
•  Multi-Asset Support : Works with stocks, ETFs, indices, crypto, or any TradingView-compatible symbol.  
 ⚙️ Configuration   
 Flexible Portfolio Setup   
• Add up to 15 assets with custom weight inputs.  
• You can enter any arbitrary numbers (e.g. 30, 15, 55).  
• The script automatically normalizes all weights so the total allocation always equals 100%.  
 Start Date Selection   
• Choose any custom start date to normalize all assets. 
• The portfolio value is then scaled relative to the main chart symbol, so you can directly compare portfolio performance against benchmarks like SPY or QQQ.
 Chart Styles   
• Candlestick chart  
• Heikin Ashi chart  
• Line chart  
 Custom Display   
• Adjustable colors and line widths  
• Optionally display asset list, normalized weights, and equivalent shares  
 ⚙️ How It Works   
• Fetch OHLC data for each asset. 
• Normalizes weights internally so totals = 100%.  
• Stores each asset’s base price at the selected start date.
• Calculates equivalent “shares” for each allocation.
• Builds a synthetic portfolio value series by summing weighted contributions.  
• Renders as Candlestick, Heikin Ashi, or Line chart.  
• Adds a portfolio info table for clarity.
 ⚠️ Notes   
• This script is for  visualization only . It does not place trades or auto-rebalance.  
• Weight inputs are automatically normalized, so you don’t need to enter exact percentages.  
BPS Multi-MA 5 — 22/30, SMA/WMA/EMA# Multi-MA 5 — 22/30 base, SMA/WMA/EMA
**What it is**
A lightweight 5-line moving-average ribbon for fast visual bias and trend/mean-reversion reads. You can switch the MA type (SMA/WMA/EMA) and choose between two ways of setting lengths: by monthly “session-based” base (22 or 30) with multipliers, or by entering exact lengths manually. An optional info table shows the effective settings in real time.
---
## How it works
* Calculates five moving averages from the selected price source.
* Lengths are either:
  * **Multipliers mode:** `Base × Multiplier` (e.g., base 22 → 22/44/66/88/110), or
  * **Manual mode:** any five exact lengths (e.g., 10/22/50/100/200).
* Plots five lines with fixed legend titles (MA1…MA5); the **info table** displays the actual type and lengths.
---
## Inputs
**Length Mode**
* **Multipliers** — choose a **Base** of **22** (≈ trading sessions per month) or **30** (calendar-style, smoother) and set **×1…×5** multipliers.
* **Manual** — enter **Len1…Len5** directly.
**MA Settings**
* **MA Type:** SMA / WMA / EMA
* **Source:** any series (e.g., `close`, `hlc3`, etc.)
* **Use true close (ignore Heikin Ashi):** when enabled, the MA is computed from the underlying instrument’s real `close`, not HA candles.
* **Show info table:** toggles the on-chart table with the current mode, type, base, and lengths.
---
## Quick start
1. Add the indicator to your chart.
2. Pick **MA Type** (e.g., **WMA** for faster response, **SMA** for smoother).
3. Choose **Length Mode**:
   * **Multipliers:** set **Base = 22** for session-based monthly lengths (stocks/FX), or **30** for heavier smoothing.
   * **Manual:** enter your exact lengths (e.g., 10/22/50/100/200).
4. (Optional) On **Heikin Ashi** charts, enable **Use true close** if you want the lines based on the instrument’s real close.
---
## Tips & notes
* **1 month ≈ 21–22 sessions.** Using 30 as “monthly” yields a smoother, more delayed curve.
* **WMA** reacts faster than **SMA** at the same length; expect earlier signals but more whipsaws in chop.
* **Len = 1** makes the MA track the chosen source (e.g., `close`) almost exactly.
* If changing lengths doesn’t move the lines, ensure you’re editing fields for the **active Length Mode** (Multipliers vs Manual).
* For clean comparisons, use the **same timeframe**. If you later wrap this in MTF logic, keep `lookahead_off` and handle gaps appropriately.
---
## Use cases
* Trend ribbon and dynamic bias zones
* Pullback entries to the mid/slow lines
* Crossovers (fast vs slow) for confirmation
* Volatility filtering by spreading lengths (e.g., 22/44/88/132/176)
---
**Credits:** Built for clarity and speed; designed around session-based “monthly” lengths (22) or smoother calendar-style (30).
Chart-Only Scanner — Pro Table v2.5.1Chart-Only Scanner — Pro Table v2.5
User Manual (Pine Script v6)
What this tool does (in one line)
A compact, on-chart table that scores the current chart symbol (or an optional override) using momentum, volume, trend, volatility, and pattern checks—so you can quickly decide UP, DOWN, or WAIT.
Quick Start (90 seconds)
Add the indicator to any chart and timeframe (1m…1M).
Leave “Override chart symbol” = OFF to auto-use the chart’s symbol.
Choose your layout:
Row (wide horizontal strip), or Grid (title + labeled cells).
Pick a size preset (Micro, Small, Medium, Large, Mobile).
Optional: turn on “Use Higher TF (EMA 20/50)” and set HTF Multiplier (e.g., 4 ⇒ if chart is 15m, HTF is 60m).
Watch the table:
DIR (↑/↓/→), ROC%, MOM, VOL, EMA stack, HTF, REV, SCORE, ACT.
Add an alert if you want: the script fires when |SCORE| ≥ Action threshold.
What to expect
A small table appears on the chart corner you choose, updating each bar (or only at bar close if you keep default smart-update).
The ACT cell shows 🔥 (strong), 👀 (medium), or ⏳ (weak).
Panels & Settings (every option explained)
Core
Momentum Period: Lookback for rate-of-change (ROC%). Shorter = more reactive; longer = smoother.
ROC% Threshold: Minimum absolute ROC% to call direction UP (↑) or DOWN (↓); otherwise →.
Require Volume Confirmation: If ON and VOL ≤ 1.0, the SCORE is forced to 0 (prevents low-volume false positives).
Override chart symbol + Custom symbol: By default, the indicator uses the chart’s symbol. Turn this ON to lock to a specific ticker (e.g., a perpetual).
Higher TF
Use Higher TF (EMA 20/50): Compares EMA20 vs EMA50 on a higher timeframe.
HTF Multiplier: Higher TF = (chart TF × multiplier).
Example: on 3H chart with multiplier 2 ⇒ HTF = 6H.
Volatility & Oscillators
ATR Length: Used to show ATR% (ATR relative to price).
RSI Length: Standard RSI; colors: green ≤30 (oversold), red ≥70 (overbought).
Stoch %K Length: With %D = SMA(%K, 3).
MACD Fast/Slow/Signal: Standard MACD values; we display Line, Signal, Histogram (L/S/H).
ADX Length (Wilder): Wilder’s smoothing (internal derivation); also shows +DI / −DI if you enable the ADX column.
EMAs / Trend
EMA Fast/Mid/Slow: We compute EMA(20/50/200) by default (editable).
EMA Stack: Bull if Fast > Mid > Slow; Bear if Fast < Mid < Slow; Flat otherwise.
Benchmark (optional, OFF by default)
Show Relative Strength vs Benchmark: Displays RS% = ROC(symbol) − ROC(benchmark) over the Momentum Period.
Benchmark Symbol: Ticker used for comparison (e.g., BTCUSDT as a market proxy).
Columns (show/hide)
Toggle which fields appear in the table. Hiding unused fields keeps the layout clean (especially on mobile).
Display
Layout Mode:
Row = a single two-row strip; each column is a metric.
Grid = a title row plus labeled pairs (label/value) arranged in rows.
Size Preset: Micro, Small, Medium, Large, Mobile change text size and the grid density.
Table Corner: Where the panel sits (e.g., Top Right).
Opaque Table Background: ON = dark card; OFF = transparent(ish).
Update Every Bar: ON = update intra-bar; OFF = smart update (last bar / real-time / confirmed history).
Action threshold (|score|): The cutoff for 🔥 and alert firing (default 70).
How to read each field
CHART: The active symbol name (or your custom override).
DIR: ↑ (ROC% > threshold), ↓ (ROC% < −threshold), → otherwise.
ROC%: Rate of change over Momentum Period.
Formula: (Close − Close ) / Close  × 100.
MOM: A scaled momentum score: min(100, |ROC%| × 10).
VOL: Volume ratio vs 20-bar SMA: Volume / SMA(Volume,20).
1.5 highlights as yellow (significant participation).
ATR%: (ATR / Close) × 100 (volatility relative to price).
RSI: Colored for extremes: ≤30 green, ≥70 red.
Stoch K/D: %K and %D numbers.
MACD L/S/H: Line, Signal, Histogram. Histogram color reflects sign (green > 0, red < 0).
ADX, +DI, −DI: Trend strength and directional components (Wilder). ADX ≥ 25 is highlighted.
EMA 20/50/200: Current EMA values (editable lengths).
STACK: Bull/Bear/Flat as defined above.
VWAP%: (Close − VWAP) / Close × 100 (premium/discount to VWAP).
HTF: ▲ if HTF EMA20 > EMA50; ▼ if <; · if flat/off.
RS%: Symbol’s ROC% − Benchmark ROC% (positive = outperforming).
REV (reversal):
🟢 Eng/Pin = bullish engulfing or bullish pin detected,
🔴 Eng/Pin = bearish engulfing or bearish pin,
· = none.
SCORE (absolute shown as a number; sign shown via DIR and ACT):
Components:
base = MOM × 0.4
volBonus = VOL > 1.5 ? 20 : VOL × 13.33
htfBonus = use_mtf ? (HTF == DIR ? 30 : HTF == 0 ? 15 : 0) : 0
trendBonus = (STACK == DIR) ? 10 : 0
macdBonus = 0 (placeholder for future versions)
scoreRaw = base + volBonus + htfBonus + trendBonus + macdBonus
SCORE = DIR ≥ 0 ? scoreRaw : −scoreRaw
If Require Volume Confirmation and VOL ≤ 1.0 ⇒ SCORE = 0.
ACT:
🔥 if |SCORE| ≥ threshold
👀 if 50 < |SCORE| < threshold
⏳ otherwise
Practical examples
Strong long (trend + participation)
DIR = ↑, ROC% = +3.2, MOM ≈ 32, VOL = 1.9, STACK = Bull, HTF = ▲, REV = 🟢
SCORE: base(12.8) + volBonus(20) + htfBonus(30) + trend(10) ≈ 73 → ACT = 🔥
Action idea: look for longs on pullbacks; confirm risk with ATR%.
Weak long (no volume)
DIR = ↑, ROC% = +1.0, but VOL = 0.8 and Require Volume Confirmation = ON
SCORE forced to 0 → ACT = ⏳
Action: wait for volume > 1.0 or turn off confirmation knowingly.
Bearish reversal warning
DIR = →, REV = 🔴 (bearish engulfing), RSI = 68, HTF = ▼
SCORE may be mid-range; ACT = 👀
Action: watch for breakdown and rising VOL.
Alerts (how to use)
The script calls alert() whenever |SCORE| ≥ Action threshold.
To receive pop-ups, sounds, or emails: click “⏰ Alerts” in TradingView, choose this indicator, and pick “Any alert() function call.”
The alert message includes: symbol, |SCORE|, DIR.
Layout, Size, and Corner tips
Row is best when you want a compact status ribbon across the top.
Grid is clearer on big screens or when you enable many columns.
Size:
Mobile = one pair per row (tall, readable)
Micro/Small = dense; good for many fields
Large = presentation/screenshots
Corner: If the table overlaps price, change the corner or set Opaque Background = OFF.
Repaint & timeframe behavior
Default smart update prefers stability (last bar / live / confirmed history).
For a stricter, “close-only” behavior (less repaint): turn Update Every Bar = OFF and avoid Heikin Ashi when you want raw market OHLC (HA modifies price inputs).
HTF logic is derived from a clean, integer multiple of your chart timeframe (via multiplier). It works with 3H/4H and any TF.
Performance notes
The script analyzes one symbol (chart or override) with multiple metrics using efficient tuple requests.
If you later want a multi-symbol grid, do it with pages (10–15 per page + rotate) to stay within platform limits (recommended future add-on).
Troubleshooting
No table visible
Ensure the indicator is added and not hidden.
Try toggling Opaque Background or switch Corner (it might be behind other drawings).
Keep Columns count reasonable for the chosen Size.
If you turned ON Override, verify the Custom symbol exists on your data provider.
Numbers look different on HA candles
Heikin Ashi modifies OHLC; switch to regular candles if you need raw price metrics.
3H/4H issues
Use integer HTF Multiplier (e.g., 2, 4). The tool builds the correct string internally; no manual timeframe strings needed.
Power user tips
Volume gating: keeping Require Volume Confirmation = ON filters most fake moves; if you’re a scalper, reduce strictness or turn it off.
Action threshold: 60–80 is typical. Higher = fewer but stronger signals.
Benchmark RS%: great for spotting leaders/laggards; positive RS% = outperformance vs benchmark.
Change policy & safety
This version doesn’t alter your historical logic you tested (no radical changes).
Any future “radical” change (score weights, HTF logic, UI hiding data) will ship with a toggle and an Impact Statement so you can keep old behavior if you prefer.
Glossary (quick)
ROC%: Percent change over N bars.
MOM: Scaled momentum (0–100).
VOL ratio: Volume vs 20-bar average.
ATR%: ATR as % of price.
ADX/DI: Trend strength / direction components (Wilder).
EMA stack: Relationship between EMAs (bullish/bearish/flat).
VWAP%: Premium/discount to VWAP.
RS%: Relative strength vs benchmark.
MacD Alerts MACD Triggers (MTF) — Buy/Sell Alerts
What it is
A clean, multi-timeframe MACD indicator that gives you separate, ready-to-use alerts for:
	•	MACD Buy – MACD line crosses above the Signal line
	•	MACD Sell – MACD line crosses below the Signal line
It keeps the familiar MACD lines + histogram, adds optional 4-color histogram logic, and marks crossovers with green/red dots. Works on any symbol and any timeframe.
How signals are generated
	•	MACD = EMA(fast) − EMA(slow)
	•	Signal = SMA(MACD, length)
	•	Buy when crossover(MACD, Signal)
	•	Sell when crossunder(MACD, Signal)
	•	You can compute MACD on the chart timeframe or lock it to another timeframe (e.g., 1h MACD on a 4h chart).
Key features
	•	MTF engine: choose Use Current Chart Resolution or a custom timeframe.
	•	Separate alert conditions: publish two alerts (“MACD Buy” and “MACD Sell”)—ideal for different notifications or webhooks.
	•	Visuals: MACD/Signal lines, optional 4-color histogram (trend & above/below zero), and crossover dots.
	•	Heikin Ashi friendly: runs on whatever candle type your chart uses. (Tip below if you want “regular” candles while viewing HA.)
Settings (Inputs)
	•	Use Current Chart Resolution (on/off)
	•	Custom Timeframe (when the above is off)
	•	Show MACD & Signal / Show Histogram / Show Dots
	•	Color MACD on Signal Cross
	•	Use 4-color Histogram
	•	Lengths: Fast EMA (12), Slow EMA (26), Signal SMA (9)
How to set alerts (2 minutes)
	1.	Add the script to your chart.
	2.	Click ⏰ Alerts → + Create Alert.
	3.	Condition: choose this indicator → MACD Buy.
	4.	Options: Once per bar close (recommended).
	5.	Set your notification method (popup/email/webhook) → Create.
	6.	Repeat for MACD Sell.
Webhook tip: send JSON like
{"symbol":"{{ticker}}","time":"{{timenow}}","signal":"BUY","price":"{{close}}"}
(and “SELL” for the sell alert).
Good to know
	•	Symbol-agnostic: use it on crypto, stocks, indices—no symbol is hard-coded.
	•	Timeframe behavior: alerts are evaluated on bar close of the MACD timeframe you pick. Using a higher TF on a lower-TF chart is supported.
	•	Heikin Ashi note: if your chart uses HA, the calculations use HA by default. To force “regular” candles while viewing HA, tweak the code to use ticker.heikinashi() only when you want it.
	•	No repainting on close: crossover signals are confirmed at bar close; choose Once per bar close to avoid intra-bar noise.
Disclaimer
This is a tool, not advice. Test across timeframes/markets and combine with risk management (position sizing, SL/TP). Past performance ≠ future results.
Call and Put signals[vivekm8955]🔍 Strategy Overview
This adaptive strategy generates clear CALL (Buy) and PUT (Sell) signals by combining:
✅ Dual EMA structure
✅ Heikin Ashi trend confirmation
✅ Smoothed Stochastic Momentum Index (SMI)
✅ Take Profit (TP) signals via momentum reversal
✅ Dynamic support from average price action
The goal: Give retail traders institutional-grade signals with clarity, without lag.
📊 Trade Entry Logic
🔼 CALL Signal (Buy):
Fast EMA < Avg Price
Slow EMA < Avg Price
Slow EMA < Fast EMA
Confirmed by crossover
➡️ This implies price has dipped below value zones and is showing strength.
🔽 PUT Signal (Sell):
Fast EMA > Avg Price
Slow EMA > Avg Price
Slow EMA > Fast EMA
Confirmed by crossover
➡️ Indicates price is elevated and showing weakness.
🏁 Exit Logic (Take Profit)
✅ TP Buy Signal: SMI crosses below 0 → Weakening upside
✅ TP Sell Signal: SMI crosses above 0 → Weakening downside
These act as exit cues or partial booking areas.
📌 Visualization & Alerts
🔼 CALL Signal → Green label below candle
🔽 PUT Signal → Red label above candle
✅ TP Signal → Small label (TP) showing ideal exit points
🔔 Real-time alerts enabled (CALL, PUT, TP alerts)
Background color changes based on EMA crossovers for added confirmation.
🕯️ Additional Filters Used
Heikin Ashi Candles: For smoothing out noise and validating trends.
SMI (Double EMA): A momentum indicator better suited for trending markets.
📈 Dashboard Included
Displays current signal, SMI value, and TP status in real-time
Color-coded for easy interpretation
Auto-adaptive table (fixes out-of-bound issues)
📎 Ideal Timeframes
Timeframe	Use Case
5m – 15m	Intraday Scalping
1h – 4h	Swing Trading
1D	Positional Plays
🚦 Suggested Usage
Step	Action
1️⃣	Confirm signal (CALL or PUT) on 1TF and 1 higher TF
2️⃣	Enter near signal candle close
3️⃣	Exit on TP label OR SMI reversal
4️⃣	Avoid entry during high volatility news events
⚠️ Disclaimer – Use with Caution!
⚠️ This script is for educational & analytical purposes only.
It does NOT guarantee profits, nor is it a financial advisory tool.
Always use risk management: Stop-losses, position sizing, capital preservation.
Do not trade blindly. Backtest it across market conditions.
Past performance is not indicative of future results.
Consult a SEBI-registered advisor for real trading decisions.






















